package org.luxor.commons.core.exception;

import org.luxor.commons.core.web.RestStatus;

/**
 * Feign远程调用异常
 *
 * @author Mr.Yan  @date: 2020/12/7
 */
public class FeignCallException extends BaseException {

    public FeignCallException() {
        super(RestStatus.RPC_CALL_ERROR);
    }

    public FeignCallException(String error) {
        super(RestStatus.RPC_CALL_ERROR, error);
    }

    public FeignCallException(Throwable e) {
        super(RestStatus.RPC_CALL_ERROR, e);
    }

    public FeignCallException(String message, String error) {
        super(RestStatus.RPC_CALL_ERROR.code(), message, error);
    }
}
